#from datetime import datetime
#raw
<script>
$(function(){
	var uid = $("#logged_uid").val(); 
    $.post("/user_profile",{'uid':uid},function(data){  
		$("#userInfo").prepend(data);
    });
});
</script>
#end raw  
<div class="tContent01">
<div id="main" class="main">
<div class="topBar001"></div>
<div class="nC1">
<div class="MIB_600 MIB_txtal">
	<div class="msg_lf clearFix titmg10">
		<div class="titmg10"> <span class="font_14 fb">我的私信</span>&nbsp; </div>
		<div class="lf"> <a class="newbbtngrn" id="msg_publisher_submit" onclick="twMailDlgShow('');return false;" href="javascript:void(0);"><em>发私信</em></a></div>
		<div class="rt">
			<div class="chdd">
				<form action="#">
				<label><input id="searchkeyword" name="searchkeyword" type="text" style="color: rgb(153, 153, 153); " class="txt_s2" value="查找联系人 / 搜索私信内容"/>
				<a id="search_btn" href="javascript:void(0)" class="btn_normal btnxs"><em>搜索</em></a>
				</label>
			    </form>
			</div>
		</div>
	</div>
	<ul class="MIB_feed" id="msg_list">
	#for t in $threads
	#set msg = $t.latest
	<li class="MIB_linedot_l">
		#set image = '/static/avatar/%s_50.jpg'%$t.uid2
		<div class="head_pic"><a href="#"><img src="$image" title="Maggie" class="picborder_l"/></a></div>
		<div class="MIB_feed_c">
		<div class="rt icon_closel" title="删除"><a href="javascript:void(0);" style="display: none; " onclick="" class="close">x</a></div>
			<p class="letter">
			<a href="#" title="Maggie">$msg.from</a>
			：$msg.text<em class="MIB_txtbl">
			($datetime.fromtimestamp($msg.time).strftime('%m月%d日 %H:%M'))
			</em>
			</p>
			<div class="feed_att MIB_linkbl">
				<div class="rt"><a href="/msg/thread/$t['_id']">共($t.msg_count)条对话</a><span class="MIB_line_l">|</span><a href="javascript:void(0);" onclick="">回复</a></div>
			</div>
		</div>
	</li>
	#end for
	</ul>
</div>     
		
</div> <!-- end of nC01 -->
<div class="moreFoot">
    <a onclick="" href="#"><span class=loading style="DISPLAY: none"></span>更 多</a>                    
</div>
</div> <!-- end of main -->

<div class="side">
	<div class="tTopBarBg01"></div>
	<div id="userInfo"> </div> 
</div><!-- end side --> 

<div id="msg-box" style="display: none;">
<p><label>发私信给：</label><input id="msg-recv"></input></p>
<p><label>私信内容：</label><textarea id="msg-text" style="width: 160px;height: 80px;"></textarea> </p>
</div> 
<div id="post_mail" class="tFloatDiv01" style="display: none;position: absolute; z-index: 5; top: 39px; left: 387px; ">
		<div class="bC001">
			<div class="titleBar001">
				<div class="fl">收信人：<input id="msg-recv" class="inputTxt" size="20" name="n" type="text" tabindex="1" disable_pd="1"></div>
				<div class="fr"><a class="closeBtn02" href="#" title="关闭" onclick="return false;"></a></div>
				<div class="clear"></div>
			</div>
			<div><textarea id="msg-text" tabindex="2"></textarea></div>
			<div class="fBar001"><input type="button" class="submit04 mt02 fr" value="发送"><span class="countTxt mlr01" style="display:none;"><span class="loading"></span>正在发表，请稍后</span><span class="countTxt mlr01"><span><font>还能输入</font><em>140</em>字</span><span class="orange" style="display:none"></span></span><div class="clear"></div></div>
		</div>
</div>

<div class="clear"></div>
</div><!-- end of tContent01 -->
